JSON data can be declared, parsed, and assigned to a variable using the
In [1]:
%%json --name data
{
"text": "foo bar",
"number": 123,
"flag": true,
"items": [
{ "t": 100, "value": 3 },
{ "t": 100, "value": 4 }
]
}
In [2]:
data.flag
In [3]:
data.items
In [ ]: